#pragma once
#include <Kernel/GunInfo.h>
class GunItem : public QListWidgetItem
{
public:
    GunItem(unordered_map<unsigned int,GunInfo::GUN_DESC>::iterator iter);
    unordered_map<unsigned int,GunInfo::GUN_DESC>::iterator iterator;
};

class GunListWidget : public QListWidget
{
    Q_OBJECT
public:
    GunListWidget(QWidget* parent = nullptr);
    void update_data(unordered_map<unsigned int,GunInfo::GUN_DESC>&data);
};

